﻿import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import ConfigElementType 1.0
import "qrc:/qmlComponents/ConfigManager"
import "qrc:/qmlComponents/AxisModulePos"
import "qrc:/qmlComponents/VisionViewer"
import "qrc:/qmlComponents/CustomizedUIElement"

Item {

    ColumnLayout{
        spacing: 30

        ColumnLayout{
            Layout.alignment: Qt.AlignTop

            RowLayout{
                VisionLocationViewer{
                    calibrationName: "PADownLookCameraCalibration"
                    visionLocationName: "PickerCaliGlassLocation"
                }

                ColumnLayout{
                    ConfigRow{
                        configName: "corCaliStepCount"
                        configModel: paConfig
                        Component.onCompleted: {
                            init(ConfigElementType.Int)
                        }
                    }

                    ConfigRow{
                        configName: "corCaliStepSize"
                        configModel: paConfig
                        Component.onCompleted: {
                            init(ConfigElementType.Int)
                        }
                    }
                }
            }

            RowLayout{
                SAxisModulePos{
                    moduleName: "PickerZ1"
                    posName: "StandbyPos"
                }

                SAxisModulePos{
                    moduleName: "PickerZ2"
                    posName: "StandbyPos"
                }
            }
        }

        MyTabView{
            indent: 3

            Component{
                id: sensorPickPrView
                SensorPickPrView{}
            }

            Component{
                id: lensPickPrView
                LensPickPrView{}
            }

            Component.onCompleted: {
                addTab("SensorPickPr", sensorPickPrView)
                addTab("LensPickPr", lensPickPrView)
            }
        }

    }
}
